<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="foot">
    <!--判断用户是否登录，如果登录。则显示登录用户-->
    <span th:if="${user} ne null">
   							<span>欢迎回来，[[${user.username}]]</span>&nbsp;
							<a href="/index/toHomeIndex">我的信息</a>&nbsp;
   							<a href="/xxx/logout">退出登录</a>
						</span>
    <span th:if="${user} eq null">
   							<li class="f-item">请先<a href="/index/toLogin" target="_blank">登录</a>  <span><a href="/index/toRegister">免费注册</a></span></li>
						</span>
</div>
</body>
</html>